package com.mjk.common.ai.mapper;


import com.mjk.common.ai.entity.KnowledgeBaseEmbedding;
import com.mjk.common.core.jdbc.bean.BeePage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface KnowledgeBaseEmbeddingMapper {

    BeePage<KnowledgeBaseEmbedding> selectByItemUuid(BeePage<KnowledgeBaseEmbedding> page, @Param("kbItemUuid") String uuid);

    boolean deleteByItemUuid(@Param("kbItemUuid") String uuid);

    Integer countByKbUuid(@Param("kbUuid") String kbUuid);

    /**
     * 更新统计数据
     *
     * @param uuid
     */
    void updateStatByUuid(@Param("uuid") String uuid);
}
